#!/bin/bash

if [ -z "$1" ]; then
	echo Usage: ./check_result_files results/FileNamesWith*WildCards.dat
	exit 0
fi


for i in "$@"; do
	ls -lhG $i | sed -e "s/^.\{13\}\(.*\)$/\1/g"
	if [ "`tail $i | grep finished`" = "" ]; then
		echo -e \\tnot finished
	else
		echo -e \\tfinished
	fi
done
